import { request, HttpMethod, restartTimes, RequestConfig } from './request'

export const getUnreadMessages = (patientUid:string | number) => {
  const config = <RequestConfig>{
    url: '/patient/sysMessage/unread/'+patientUid,
    method: HttpMethod.GET,
  }
  return request(config);
}
export const markAllMessagesAsRead = (data: object) => {
  const config = <RequestConfig>{
    url: '/patient/sysMessage/read',
    method: HttpMethod.POST,
    data: data,
  }
  return request(config);
}
export const getSysMessageById = (data: object) => {
  const config = <RequestConfig>{
    url: '/patient/sysMessage/getSysMessageById',
    method: HttpMethod.POST,
    data: data,
  }
  return request(config);
}
